package com.zh.work.entity.branch;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: 机构-业务管理实体
 * @Author: Li.HuiNeng
 * @Create in: 2019/8/24
 * @Version: 1.0.1
 */
@ApiModel(value = "机构-业务管理实体", description = "业务管理实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("branch_biz")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BranchBizEntity extends Model<BranchBizEntity> {
    private static final long serialVersionUID = -8677278541246366257L;

    @ApiModelProperty(value = "主键", name = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "逻辑删除字段", name = "deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "机构编码", name = "branchno")
    @TableField(value = "branchno")
    private String branchNo;


    @ApiModelProperty(value = "业务类型(1-银行卡 2-二维码 3-网关 4-快捷)", name = "biz_type")
    @TableField(value = "biz_type")
    private Integer bizType;

    @ApiModelProperty(value = "T+1业务开通状态(1-开通 2-关闭)", name = "open_t1")
    @TableField(value = "open_t1")
    private Integer openT1;

    @ApiModelProperty(value = "T+0业务开通状态(1-开通 2-关闭)", name = "open_t0")
    @TableField(value = "open_t0")
    private Integer openT0;

    @ApiModelProperty(value = "T+1最低交易金额", name = "min_amount_t1")
    @TableField(value = "min_amount_t1")
    private BigDecimal minAmountT1;

    @ApiModelProperty(value = "T+0最低交易金额", name = "min_amount_t0")
    @TableField(value = "min_amount_t0")
    private BigDecimal minAmountT0;

    @ApiModelProperty(value = "提现费成本", name = "with_drawal_cost")
    @TableField(value = "with_drawal_cost")
    private BigDecimal withDrawalCost;

    @ApiModelProperty(value = "商户提现费", name = "with_drawal_fee")
    @TableField(value = "with_drawal_fee")
    private BigDecimal withDrawalFee;

    @ApiModelProperty(value = "最低手续费", name = "min_fee")
    @TableField(value = "min_fee")
    private BigDecimal minFee;

    @ApiModelProperty(value = "创建时间", name = "add_time")
    @TableField(value = "add_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String addTime;

}
